﻿.my_alert-wrapper {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000001;
}

    .my_alert-wrapper .my_alertBox {
        width: 500px;
        padding: 14px 16px;
        box-sizing: border-box;
        border-radius: 4px;
        background-color: #fff;
        overflow: hidden;
        opacity: 1;
        display: flex;
        margin: 20px auto;
        -webkit-animation-name: slideDownUp; /*动画名称*/
        -webkit-animation-duration: 1s; /*动画持续时间*/
        -webkit-animation-iteration-count: 1; /*动画次数*/
        -webkit-animation-delay: 0s; /*延迟时间*/
    }

@media only screen and (max-width: 800px) {
    .my_alertBox {
        width: 300px;
        left: calc(50% - 150px);
    }
}

.my_alertBox--error {
    background-color: rgb(255,241,240);
    color: #f56c6c;
    border: 2px solid rgb(255,163,158);
}

.my_alertBox--info {
    background-color: rgb(230,247,255);
    color: #909399;
    border: 2px solid rgb(145,213,255);
}

.my_alertBox--success {
    background-color: rgb(246,255,237);
    color: #67c23a;
    border: 2px solid rgb(183,235,143);
}

.my_alertBox--warning {
    background-color: rgb(255,251,230);
    color: #e6a23c;
    border: 2px solid rgb(255,229,143);
}

.my_alert-icon {
    font-size: 16px;
    width: 16px;
}

.my_alert-content {
    flex: 1;
    padding: 0 8px;
    font-size: 13px;
    line-height: 18px;
    word-break: break-all;
}

.my_alert-closebtn {
    font-size: 16px;
    color: #c0c4cc;
    opacity: 1;
    width: 20px;
    /*position: absolute;*/
    /*top: 16px;*/
    /*right: 15px;*/
    cursor: pointer;
}

@-webkit-keyframes slideDownUp {
    from {
        -webkit-transform: translateY(-100%);
    }

    to {
        -webkit-transform: translateY(0);
    }
}
